<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
	</head>

	<body>
		<script src="js/mui.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">消息警示</h1>
		</header>
		<div class="mui-content">
			<button type="button" class="mui-btn mui-btn-blue">警告框</button>
			<button type="button" class="mui-btn mui-btn-yellow">确认框</button>
			<button type="button" class="mui-btn mui-btn-red">输入对话框</button>
			<button type="button" class="mui-btn mui-btn-grey">消息提示框</button>
			<button type="button" class="mui-btn mui-btn-green">获取信息</button>
		</div>
	</body>
	<script>
	
	var bts=document.getElementsByClassName("mui-btn");
	bts[0].onclick=function(){
		mui.alert("这是一个警告框","警告框","已阅",function(e){
			console.log(JSON.stringify(e))
		})
	}
	bts[1].onclick = function() {
		var btnArray = ["是", "否"]
		mui.confirm("昨天的bug解决了吗？", "消息标题", btnArray, function(e) {
			if (e.index == 0) {
				alert("解决昨天出现的全部了bug")
			} else {
				alert("没有，55")
			}
		})
	}
	
	bts[2].onclick = function() {
		var btnArr = ["确认", "取消"]
		mui.prompt("输入你对mui的评价", "性能好", "Hello mui", btnArr, function(e) {
			if (e.index == 0) {
				alert("感谢评价")
			} else {
				alert("取消了评价")
			}
		})
	}
	bts[3].onclick = function() {
		mui.toast("欢迎体验MUI")
	}
	bts[4].onclick=function(){
		mui.get("http://172.16.31.3:8089/nsd_springbootserver/userinfo/getallinfoes",
		{
			pageNum:1,
			pageSize:5
		},function(data){
			console.log(JSON.stringify(data))
		})
	}
	
	
	</script>

</html>
